/* $Id: socket.h 13 2006-12-14 21:07:45Z judas $ */

#ifndef NIH_SOCKET_H
#define NIH_SOCKET_H 1

#include <nih/cdefs.h>

BEGIN_C_DECLS

extern int nih_sock_tcp();

extern int nih_sock_udp();

extern int nih_sock_bind(int sock, const char *if_names, const char *str_ips,
                         unsigned short port);

extern int nih_sock_connect(int sock, const char *ipstr, unsigned short port,
                            struct timespec *timeout);

END_C_DECLS

#endif /* NIH_SOCKET_H */

